//package com.example.apiservice.client;
//
//import com.example.apiservice.client.fallback.StudentClientFallbackFactory;
//import com.example.common.domain.Result;
//import com.example.common.domain.dto.UserAndRole;
//import com.example.common.domain.pojo.Student;
//import com.example.common.domain.pojo.Teacher;
//import com.example.common.domain.pojo.User;
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//
//
//@FeignClient(value = "admin-service", fallbackFactory = StudentClientFallbackFactory.class,
//        url = "http://192.168.233.57:8187")
//public interface AdminClient {
//
//    @GetMapping("/admin/getStudentById/{id}")
//    Result<Student> getStudentById(@PathVariable String id);
//
//    @GetMapping("/admin/getUserById/{id}")
//    Result<User> getUserById(@PathVariable String id);
//
//    @GetMapping("/admin/getTeacherById/{id}")
//    Result<Teacher> getTeacherById(@PathVariable String id);
//
//    //  获取当前登录id和权限(方便开发测试接口)
//    @GetMapping("/getLoginIdAndRole")
//    Result<UserAndRole> getById();
//
//
//}
